package net.yla.smartbus.core.base;

import lombok.Data;
import net.yla.smartbus.core.constants.YesNoEnum;
import net.yla.smartbus.core.validation.DtoName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * Entity基类
 *
 * @author ZengXiaoLiang
 * @date 2019/3/22 9:21
 */
@Data
public class BaseEntity implements Serializable {

    //记录所属平台
    private Integer platformId;

    //中心平台记录标识号
    private Long uniqueId;

    //记录的版本号(记录每次更新该值+1)
    private Integer version;

    //是否隐藏该记录(0正常，>0隐藏，-1逻辑删除)
    @DtoName(value = "hidden", group = {"count", "query"})
    private Integer hidden;

    //是否禁用
    private Integer disabled;

    //记录的排序号(数字越大排序越靠前)
    @DtoName(value = "sortOrder", group = {"count", "query"})
    private Integer sortOrder;

    //记录的创建时间
    @DtoName(value = "creation", group = {"count", "query"})
    private Date creationTime;

    //记录的最后修改时间
    @DtoName(value = "modify", group = {"count", "query"})
    private Date lastModifyTime;

    //记录的标志位
    private Integer flags;

}
